package org.spring.activemq.demo;

import org.springframework.jms.core.JmsTemplate;

public class Producer {
	private JmsTemplate jmsTemplet = null;

	public void setJmsTemplet(JmsTemplate jmsTemplet) {
		this.jmsTemplet = jmsTemplet;
	}

	public void simpleSend(Hello h) {
		this.jmsTemplet.setDeliveryPersistent(true);
		this.jmsTemplet.convertAndSend(h);
	}
}
